<?php
    /*
     * Main declarations
     */

    class jsmain {
        public static function mainInit($blocks){
?>
                blocksInit();

                <?php foreach($blocks as $block){
                    ?>makeBlock(<?php echo $block['ID']; ?>);
                <?php } ?>
<?php
        }
    }
?>